coding example of right triangle star pattern